<template>
  <el-dialog title="意见反馈详情" :visible.sync="isShow" @close="$emit('update:isShowDetail', false)" width="500px">
    <el-form label-position="right" ref="info" :model="info" label-width="120px">
      <el-form-item label="提出时间：">
        <span>{{info.createTime}}</span>
      </el-form-item>
      <el-form-item label="提出人：">
        <span>{{info.account}}</span>
      </el-form-item>
      <el-form-item label="提出人角色：">
        <span>{{info.roleName}}</span>
      </el-form-item>
      <el-form-item label="联系方式：">
        <span>{{info.telphone}}</span>
      </el-form-item>
      <el-form-item label="意见反馈内容：">
        <span>{{info.content}}</span>
      </el-form-item>
    </el-form>
    <div class="footer text-center mt20">
      <el-button type="primary" @click="isShow = false">关 闭</el-button>
    </div>
  </el-dialog>
</template>

<script>
  export default {
    props: {
      isShowDetail: {
        type: Boolean,
        default: false
      }
    },
    data() {
      return {
        isShow: this.isShowDetail,
        info: {}
      }
    },
    watch: {
      isShowDetail(val) {
        this.isShow = val
      }
    },
    methods: {
      setInfo(info){
        this.info = info
      }
    },
    created() {
    }
  }
</script>

<style lang="scss" scoped>
  .el-form-item{
    margin-bottom: 0;
  }
</style>
